ig.module(
	'game.entities.base.baseSheep'
)
.requires(
	'impact.entity',
	'game.entities.base.pickObject'	
)
.defines(function()
{
    EntityBaseSheep = EntityPickObject.extend(
    {
        size: {x:41, y:24},	
        animSheet: new ig.AnimationSheet('media/images/blueSheep.png', 41, 24),
        bounciness: 1,
	pickType: 'none',
	font: new ig.Font( 'media/fonts/arialRounded.png' ),
	zIndex: 10,
	
	init: function(x, y, settings)
	{
	    this.parent(x, y, settings);
	    this.addAnim('Idle', 1, [0]);
	    this.friction.y = 0;
	    this.friction.x = 0;
	    this.gravityFactor = 0;
	},
	
	update: function()
	{	    	
	    if (this.vel.x > 0)
	    {
		this.currentAnim.flip.x = true;
		this.vel.x = 50;
	    }
	    else if (this.vel.x < 0)
	    {
		this.currentAnim.flip.x = false;
		this.vel.x = -50;		
	    }
	    
	    if (this.vel.y > 0)
	    {
		this.vel.y = 50;
	    }
	    else if (this.vel.y < 0)
	    {
		this.vel.y = -50;		
	    }
	    
	    this.parent();	    
	}
    });
});